<template>
	<view class="page-help">
		<u-navbar :title="title" back-icon-color="#000" :border-bottom="false"
		title-size="36" title-color="#000" title-bold></u-navbar> 
		<view class="content">
			<view class="u-margin-bottom-30 u-margin-top-20 u-flex u-row-center u-font-36">
				{{helpInfo.title}}
			</view>
			<u-parse :html="helpInfo.ncontent"></u-parse>
		</view>
	</view>
</template>

<script>
	import {commonGet} from '@/api/commonapi.js'
	export default {
		data() {
			return {
				cmd:"",
				id:"",
				helpInfo:{},
				title:""
			}
		},
		onLoad(options) {
			this.cmd = options.cmd
			this.id = options.id
			this.title = options.title
			this.getHelp()
		},
		methods: {
			getHelp(){
				let _this = this
				let query = {
					ak:_this.$store.state.token,
					cmd:_this.cmd,
					para:JSON.stringify({
						id:_this.id
					})
				}
				commonGet(query,({Data})=>{
					console.log(Data)
					_this.helpInfo = Data
				})
			}
		}
	}
</script>

<style lang="scss">
.content{
	padding: 0 30rpx;
}
</style>
